package tech.aistar.day06.homework01;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/3/16 8:56 上午
 */
public class Circle extends Shape{
    private double r;

    public static final double PI = 3.14;

    public Circle(double r){
        this.r = r;
    }

    @Override
    public double area() {
        return Math.pow(PI,2);
    }

    @Override
    public double girth() {
        return 2*r*PI;
    }
}
